Page({



    onReady(){
        this.mapContext = wx.createMapContext('mapDemo');
    },
    getMyLocation(){
        this.mapContext.getCenterLocation({
            success: (res)=>{
                console.log(res);
                this.mapContext.moveToLocation()
            }
        })
    }

})